#include "getHtml.h"
#include "parserHtml.h"
#include "parserUrl.h"
#include <boost/regex.hpp>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>

#include "filterUrl.h"
using namespace std;
using namespace boost;

#define  TEST_PAGE

//#define  TEST_PIC
#include "singleton.h"
#include "threadWork.h"


int main() 
{
    getHtml * gh = new getHtml();
#ifdef TEST_PAGE
	gh->Interface();
#else
	gh->testPage();
#endif
    delete gh;

#ifdef TEST_PIC
	cout<<"----------------------------------TEST_PIC"<<endl;
	string url = "http://c.csdn.net/bbs/t/5/i/pic_logo.JPg";
	filterUrl * fu = new filterUrl(url);
	fu->isHasImage();
	delete fu;
#endif
    //boost::asio::io_service io;
    //printer p(io);
    //boost::thread t(boost::bind(&boost::asio::io_service::run, &io));
    //io.run();
    //t.join();
    std::system("pause");
    return 0;
}

